# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-brotlipy
_pkgname=brotlipy
pkgver=0.7.0
pkgrel=14
pkgdesc='Python binding to the Brotli library.'
arch=('x86_64' 'aarch64')
license=('MIT')
url='https://github.com/python-hyper/brotlipy'
depends=('python' 'python-cffi' 'brotli06')
makedepends=('python-setuptools' 'python-cffi' 'brotli06')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2a01e5b2d217043f13316afc4f54569c5dff76d31c296d4be563a5851195380ab80a33a3035ca95effdebffb45806fb9a431a181bba6f9af205b7f5576937268')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

